#!/bin/bash
# 

if [ ! -n "$1" ]; then
  echo " e.g. | dl https://static-beta.yjzf.com/logo.png"
  echo "download url not be null. exit 1"
  exit 1 
fi

url=$1

cut_result=$(echo "$url" | cut -d'?' -f1)  
filename="${cut_result##*/}"

curl -H 'referer:https://dl.yjzf.com' $url -o $filename
